#include "settings.h"

class Food {
	friend class Snake;
public:
	Food(int x, int y) :x(x), y(y) 
	{ 
		for (int i = 0; i < BOX_HEIGHT; ++i)
			for (int j = 0; j < BOX_WIDTH; ++j)
				map[i][j] = false;
	}
	void create_food(Snake);
	void draw();
private:
	void remap(Snake);

	int x, y;
	int box_left = BOX_WIDTH * BOX_HEIGHT - 1 - INIT_BODY;
	bool map[BOX_HEIGHT][BOX_WIDTH];
};

